<div class="bjui-pageHeader" style="background-color:#fefefe; border-bottom:none;">
    <form data-toggle="ajaxsearch" data-options="{searchDatagrid:$.CurrentNavtab.find('#system-menu-list-table')}">
        <fieldset>
            <legend style="font-weight:normal;">搜索：</legend>
            <div style="margin:0; padding:1px 5px 5px;">
                <span>名称：</span>
                <input type="text" name="name" class="form-control" size="50">

                <div class="btn-group">
                    <button type="submit" class="btn-green" data-icon="search">开始搜索</button>
                    <button type="reset" class="btn-orange" data-icon="times">重置</button>
                </div>
            </div>
        </fieldset>
    </form>
</div>
<table id="system-menu-list-table" data-toggle="datagrid" data-options="{
    tableWidth: '100%',
    width: '100%',
    height: '100%',
    gridTitle: '节点列表',
    showToolbar: true,
    toolbarItem:'add',
    local: 'local',
    showEditbtnscol: '操作',
    filterThead: false,
    dataUrl: 'admin/system/menu-list',
    inlineEditMult: false,
    editUrl: 'admin/system/menu-edit',
    editCallback:editCallback,
    delUrl: 'admin/system/menu-delete',
    delPK: 'id',
    isTree: 'name',
    addLocation: 'first',
    fieldSortable: false,
    columnMenu: false,
    paging: {pageSize:100, selectPageSize:'100', pageCurrent:1, showPagenum:5, totalRow:0},
    treeOptions: {
        expandAll: false,
        add: true,
        simpleData: true,
        keys: {
            parentKey: 'pid',
        }
    }
}">
    <thead>
    <tr>
        <th data-options="{name:'name', align:'left',rule:'required'}">名称</th>
        <th data-options="{name:'english_name', align:'left',rule:'required'}">英文名称</th>
        <th data-options="{name:'url', align:'left'}">链接</th>
    </tr>
    </thead>
</table>
<script type="text/javascript">
    function editCallback( json ){
        BJUI.navtab('reload');
    }
</script>